<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	
	<script>
		let json = '[{"username":"zhou","password":"123","gender":"male","age":30},{"username":"wang","password":"312","gender":"male","age":31}]';
		
		// js 原生支持 json转换  不需要 库
		
		let arr = JSON.parse(json);   // 把json串转换成前端里的对象
		
		
		console.log(arr);
				
				
		let str = JSON.stringify(arr);
				
		console.log(str);
				
		
		
	
	
	
	</script>
	
	
</html>
